using System;
using Mono.Zeroconf;

namespace MonsterNetZeroConf
{
	public class MNZeroConfServer
	{
		public const int kPort = 4001;
		
		private RegisterService _service;
		
		public MNZeroConfServer ()
		{
			_service = new RegisterService ();
			_service.Name = "MN Requests";
			_service.RegType = "_MNReq._tcp";
			_service.ReplyDomain = "local.";
			_service.Port = kPort;		
		}
		
		public void Register ()
		{
			if (_service != null) {
				_service.Register ();
			}
		}
		
	}
}

